package com.example.cloudstreamrocketmqprovider8801.controller;

import com.example.cloudstreamrocketmqprovider8801.provider.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: SendController
 * @Description:
 * @Date 2024/03/05 15:45
 * @Author songshaoqiu
 **/
@RestController
public class SendController {

    @Autowired
    IMessageProvider messageProvider;
    @GetMapping("/send")
    public String send(){
        String msg = messageProvider.send("测试发送第一条消息");
        return msg;

    }
}
